 
  $ocelotPath= $PSScriptRoot +"\src\ERP.Ocelot\"
  $IdentityServerPath= $PSScriptRoot +"\src\ERP.IdentityServer\"
  $apihost= $PSScriptRoot +"\src\ERP.HttpApi.Host\"
  $blazorpath= $PSScriptRoot +"\src\ERP.Blazor\"
  $designerpath= $PSScriptRoot +"\modules\Workflow-Design\ERP.Workflow.Designer.HttpApi\"
 
Get-Process -Name "dotnet*"|Stop-Process
Get-Process -Name "ERP*"|Stop-Process


Start-Job  -Name ocelotjob -ScriptBlock {     param($path)
    cd  $path
    dotnet  run  debugger
}  -ArgumentList $ocelotPath

Start-Job  -Name identityjob -ScriptBlock {     param($path)
    cd  $path
    dotnet run debugger
}  -ArgumentList $IdentityServerPath

Start-Job  -Name apiHost -ScriptBlock {     param($path)
    cd  $path
    dotnet  run debugger
}   -ArgumentList $apihost

 Start-Job  -Name blazoruijob -ScriptBlock {   param($path)
    cd $path
    dotnet  run 
} -ArgumentList $blazorpath
     
 Start-Job  -Name designerjob -ScriptBlock {   param($path)
    cd $path
    dotnet  run  debugger
} -ArgumentList $designerpath
     
  

 
     <#
Enable-PSRemoting

# ����Ҫִ�е�����  
$command = "ls -la";  
   

# ִ������  
$result = Invoke-Command -ComputerName  optiplex,localhost -ScriptBlock { 

"Զ�̲���"|Out-File "C:\yc.txt"
 } 
#>
 



   

 
 
 